package com.supcon.exchangedata.repository.master;

import com.supcon.exchangedata.pojo.entity.oracle.CtCar;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @program: exchange-data
 * @description:
 * @author: cherubr.Sumin
 * @create: 2021-12-15 14:24
 **/
public interface MasterCtCareRepository extends JpaRepository<CtCar, Long> {


//    @Modifying
//    @Query(
//
//    )
//    @Transactional
//    void updateCtCarByLicensePlateNum(CtCar ctCar);

    CtCar findByLicensePlateNum(String licensePlateNum);

    public List<CtCar> findByGroupId(Long groupId);

    public int deleteAllByGroupId(Long groupId);

}
